package org.jeecg.modules.business.transfer.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 纸筒库存预警信息
 * @Author: jeecg-boot
 * @Date:   2023-11-10
 * @Version: V1.0
 */
@Data
@TableName("wms_paper_warning")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_paper_warning对象", description="纸筒库存预警信息")
public class PaperWarning implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**预警编号*/
    @ApiModelProperty(value = "预警编号")
    private String code;
	/**物料id*/
    @ApiModelProperty(value = "物料id")
    private String materialId;
	/**仓库id*/
    @ApiModelProperty(value = "仓库id")
    @Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    private String warehouseId;
	/**库区id*/
    @ApiModelProperty(value = "库区id")
    @Dict(dictTable = "wms_basic_warehouse_area", dicText = "name", dicCode = "id")
    private String warehouseAreaId;
	/**库存量*/
    @ApiModelProperty(value = "库存量")
    private String stockQuantity;
    /**
     * 安全库存
     */
    @ApiModelProperty(value = "安全库存")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String safeInventory;
    /**
     * 最大库存
     */
    @ApiModelProperty(value = "最大库存")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String maxInventory;
	/**预警时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预警时间")
    private Date warningTime;
	/**纸筒采购任务id*/
    @ApiModelProperty(value = "纸筒采购任务id")
    @Dict(dictTable = "wms_paper_purchase", dicText = "document_code", dicCode = "id")
    private String paperPurchaseTaskId;
	/**状态,1 未处理, 2 已处理, 3 已关闭*/
    @ApiModelProperty(value = "状态,1 未处理, 2 已处理, 3 已关闭")
    @Dict(dicCode = "paper_warning_status")
    private String status;
	/**租户id*/
    @ApiModelProperty(value = "租户id")
    private String tenantId;
	/**逻辑删除*/
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private String delFlag;

    /**物料编码*/
    @ApiModelProperty(value = "物料编码")
    @TableField(exist = false)
    private String materialCode;
    /**物料名称*/
    @ApiModelProperty(value = "物料名称")
    @TableField(exist = false)
    private String materialName;
    /**规格型号*/
    @ApiModelProperty(value = "规格型号")
    @TableField(exist = false)
    private String specification;
    /**库存单位id*/
    @ApiModelProperty(value = "库存单位id")
    @TableField(exist = false)
    private String wmsBasicUnitId;
    /**库存单位*/
    @ApiModelProperty(value = "库存单位")
    @TableField(exist = false)
    private String unitName;
    /**最大容量*/
    @ApiModelProperty(value = "最大容量")
    @TableField(exist = false)
    private String maxCapacity;
    /**预警容量*/
    @ApiModelProperty(value = "预警容量")
    @TableField(exist = false)
    private String warningCapacity;
}
